package com.chenpeijian.demo.demos.web.controller;

import com.chenpeijian.demo.demos.web.service.OrderFutureService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.SimpleTimeZone;

/**
 * @program: student_code
 * @description:
 * @author: 陈培建
 * @create: 2024-12-24 11:22
 **/
@RestController
@RequestMapping("/future")
@Tag(name = "异步")
public class FutureController {
    @Autowired
    private OrderFutureService orderFutureService;
    @Operation(summary = "异步查询订单")
    @GetMapping("/order")
    public HashMap<String,Object> order() {
        return orderFutureService.asyncLogin();
    }

}
